package win.tbs.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import win.tbs.boot.bean.Car;

//简化日志开发
@Slf4j

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String handle01(){
        log.info("请求了/hello");
        return "Hello, Spring Boot 2!"+"来了老铁";
    }

    @Autowired
    Car car;

    @RequestMapping("/car")
    public Car car(){
        return car;
    }


}
